package com.baizhi.springbootday0202;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("com.baizhi.springbootday0202.dao")
@EnableTransactionManagement
public class SpringBootDay0202Application extends SpringBootServletInitializer {
	public static void main(String[] args) {
		SpringApplication.run(SpringBootDay0202Application.class,args);
	}


	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(SpringBootDay0202Application.class);
	}
}
